package com.qidian.mes.dv.controller;

import com.qidian.mes.dv.service.WorkshopService;
import com.qidian.mes.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 陆雯城
 * @Description
 * @Time 2024-04-14 14:19
 */
@CrossOrigin
@RestController
@RequestMapping("/workshop")
public class WorkshopController {
    @Autowired
    private WorkshopService workshopService;

    @GetMapping("/queryWorkshopNames")
    public QdResult queryWorkshopNames() {
        return workshopService.queryWorkshopNames();
    }
}
